/*
 * 文件名: TestController.java
 * 版权: Copyright (c) 金晨数通有限公司-版权所有.
 */
package com.jacoco.hefei.maven.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.jacoco.hefei.maven.example.service.DockerService;
import com.jacoco.hefei.maven.example.vo.Order;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 *
 * @类描述：
 *
 * @创建人：zhanghr
 *
 * @创建时间：2021年8月10日 下午8:30:39
 *
 *
 */
@Api(value = "医生站的接口",tags="医生站的接口")
@RestController
@RequestMapping("/doctor")
public class TestController {
    
    @Autowired
    DockerService dockerService;
    
    @ApiOperation(notes = "创建医嘱",value = "创建医嘱")
    @GetMapping("/createOrder")
    public Boolean index(  @RequestParam("userId") String userId){
        Boolean result =  dockerService.createOrder(userId);
        return result;
    }
    @ApiOperation(notes = "删除医嘱",value = "删除医嘱")
    @GetMapping("/deleteeOrder")
    public Boolean deleteeOrder(  @RequestParam("userId") String userId){
        Boolean result =  dockerService.deleteeOrder(userId);
        return result;
    }
    @ApiOperation(notes = "查询医嘱",value = "查询医嘱")
    @GetMapping("/searchOrder")
    public Order searchOrder(  @RequestParam("userId") String userId){
        Order result =  dockerService.searchOrder(userId);
        return result;
    }
    
}
